import { http } from "@/utils/http";

type Result = {
  // success: boolean;
  // data: Array<any>;
  code: number;
  msg: string;
  data: {
    router: Array<any>;
  };
};

export const getAsyncRoutes = () => {
  return http.request<Result>("get", "/api/User/GetRoute");
};
